home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c,alt.msdos.programmer
- Path: mxsld2.pd.infn.it!LORETI
- From: loreti@mxsld2.pd.infn.it (Maurizio Loreti)
- Subject: Re: Two strange C problems.
- X-Nntp-Posting-Host: mxsld2.pd.infn.it
- Message-ID: <DKv7rz.CnL@news.cern.ch>
- Sender: news@news.cern.ch (USENET News System)
- Reply-To: loreti@mxsld2.pd.infn.it
- Organization: I.N.F.N. Padova - CDF/CMS VAXcluster
- References: <4cojb2$qog@lugb.latrobe.edu.au>,<4cqrom$a63@arcturus.ciril.fr>
- Date: Mon, 8 Jan 1996 13:50:00 GMT
-
- In article <4cqrom$a63@arcturus.ciril.fr>, gross laurent <gross> writes:
- >For your first problem, try to FLUSH the buffers. Printf and Scanf and all I/O
- >operations uses a buffer whitch is not automatically flushed when you exit of
- >your program.
- >For your second problem when you write "carac=15" then chr(carac) is the ASCII
- >character of decimal value 15, ie the ASCII character 15. If you write
- >carac=\15, then chr(carac) is the ASCII character Hex(15), ie the ASCII
- >character 21.
- >
-
- 1) Your EMail address in the header ("gross") is unusable; please
- contact your system administrator.
- 2) Your answer is wrong; "carac=\15" is a syntax error, and maybe you
- meant "carac='\15'".
- 3) Your answer is doubly wrong because '\15' is OCTAL 15, i.e. decimal
- 13.
- 4) You are still wrong quoting "chr(integer constant)"; I don't know
- of any function with such a name in C.
- --
- Maurizio Loreti http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
- Un. of Padova, Dept. of Physics - Padova, Italy loreti@padova.infn.it
-